// 
// Decompiled by Procyon v0.5.36
// 

package com.orange.boot.config;

import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.ApiInfo;
import org.springframework.context.annotation.Bean;
import com.google.common.base.Predicates;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableSwagger2
public class SwaggerConfig
{
    @Bean
    public Docket webApiConfig() {
        return (new Docket(DocumentationType.SWAGGER_2)).groupName("platform").apiInfo(this.webApiInfo()).select().paths(Predicates.not(PathSelectors.regex("/error.*"))).build();
    }

    private ApiInfo webApiInfo() {
        return (new ApiInfoBuilder()).title("柑橘API文档").description("本文档描述了后端api接口定义").version("1.0").build();
    }
}
